package com.bkgy.modular.calsidata.controller;

import com.alibaba.fastjson.JSONObject;
import com.bkgy.modular.calsidata.service.TbEdgeService;
import com.bkgy.sys.common.entity.ResultData;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/tbEdge")
public class TbEdgeController {

    @Resource
    private TbEdgeService tbEdgeService;


    /**
     * 分页查看记录
     *
     * @param data json字符串
     */
    @CrossOrigin
    @RequestMapping(value = {"/findByPage"}, method = RequestMethod.POST)
    @ResponseBody
    public ResultData findDataTbEdgeByPage(@RequestBody String data) {
        return tbEdgeService.findDataTbEdgeByPage(data);
    }

    @PostMapping("/findTbfaltData")
    public ResultData findTbfaltData(@RequestBody JSONObject jsonObject) {
        return tbEdgeService.findTbfaltData(jsonObject);
    }
}
